# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=eyed3
_pkgname=eyeD3
pkgver=0.9.6
pkgrel=3
pkgdesc="ID3 tag editor in Python"
url="https://eyed3.nicfit.net/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-magic py3-six py3-deprecation py3-filetype"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-eyed3 py3-eyed3" # for backwards compatibility
provides="py-eyed3=$pkgver-r$pkgrel py3-eyed3=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="574962702628c64351d6dce3dcd7796731c185515f854727110edbc2001f8d36ed3acf96591d117d08ba9f41a0566eafa1194c110ac33560d24fc16bcda183c4  eyeD3-0.9.6.tar.gz"
